package com.blog.pojo;

import java.time.LocalDateTime;


public class Favorite {
    private Integer id;
    private Integer articleId;
    private Integer userId;
    private Byte favorite;
    private LocalDateTime createTime;
    private String username;
    private String title;

    public Favorite() {
    }
    public Favorite(Integer id, Integer articleId, Integer userId, Byte favorite, LocalDateTime createTime) {
        this.id = id;
        this.articleId = articleId;
        this.userId = userId;
        this.favorite = favorite;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Byte getFavorite() {
        return favorite;
    }

    public void setFavorite(Byte favorite) {
        this.favorite = favorite;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
